// // Copyright (c) 2009 All Right Reserved // // vl // // 2009-01-01 // Contains ... using System.Text; using JetBrains.Annotations; using LargoCommon.Interfaces; namespace LargoCommon.Music { /// /// Musical Shift. /// public sealed class MusicalShift : IMusicalLocation { #region Properties /// Gets or sets bar number. /// Property description. public int BarNumber { get; set; } /// Gets or sets staff number (MusicXml). /// Property description. public byte Staff { get; set; } /// Gets or sets voice number (MusicXml). /// Property description. public byte Voice { get; set; } /// Gets or sets voice number (MusicXml). /// Property description. public short Value { get; set; } /// Gets or sets voice number (MusicXml). /// Property description. public byte InstrumentNumber { get; [UsedImplicitly] set; } /// Gets or sets voice number (MusicXml). /// Property description. public MidiChannel Channel { get; [UsedImplicitly] set; } #endregion #region String representation /// String representation - not used, so marked as static. /// Returns value. public override string ToString() { var s = new StringBuilder(); s.AppendFormat("Bar={0,4} Value={1,6:F1} ", this.BarNumber, this.Value); return s.ToString(); } #endregion } }